{% extends "reception/reception_page.html" %}
{% load static %}
{% load reception_tags %}
<!doctype html>
<html lang="ru">

{% block head %}

  {% if object.title %}
    {% autoescape off %}
      <title>{{ object.title }}</title>
    {% endautoescape %}
  {% endif %}

  {% if object.keywords %}
    {% autoescape off %}
      <meta name="keywords" content="{{ object.keywords|safe }}">
    {% endautoescape %}
  {% endif %}

  {% if object.description %}
    {% autoescape off %}
      <meta name="description" content="{{ object.description|safe }}">
    {% endautoescape %}
  {% endif %}

  {% if object.snippet %}
    {% autoescape off %}
      <meta name="snippet" content="{{ object.snippet|safe }}">
    {% endautoescape %}
  {% endif %}

{% endblock %}


{% block menu %}

    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link " aria-current="page" href="#">ОПИСАНИЕ</a>
      </li>
      <li class="nav-item ">
        <a class="nav-link " aria-current="page" href="#">МОДУЛИ</a>
      </li>
      <li class="nav-item ">
        <a class="nav-link " aria-current="page" href="#">ХАРАКТЕРИСТИКИ</a>
      </li>
      <li class="nav-item ">
        <a class="nav-link " aria-current="page" href="#">ХАРАКТЕРИСТИКИ</a>
      </li>
    </ul>

  {% endblock %}


{% block page %}
    <div class="card py-3">
      {% if object.title %}
        <div class="card-header"><h5>{{ object.title }}</h5></div>
      {% else %}

      {% endif %}
        <div class="card-body" id="{{ page_i.slug }}">
          {{ object.code_content|safe }}
          {{ object.content|safe }}
        </div>
      </div>

    {% for page_i in data_pages %}
      <div class="card py-3">
        {% if page_i.title %}
          <div class="card-header"><h5>{{ page_i.title }}</h5></div>
        {% else %}

        {% endif %}
          <div class="card-body" id="{{ page_i.slug }}">
            {{ page_i.code_content|safe }}
            {{ page_i.content|safe }}
          </div>
        </div>
    {% endfor %}


{% endblock %}


</html>
